@layout("/common/_container.html"){
	<!-- PAGE CONTENT BEGINS -->
	<form data-url="${ctxPath}/${code}/update" method="post" class="form-horizontal" role="form">	
		<!-- 表单 -->
		@ var _table="tfw_dept";
		@ var _key="id";
		@ var _col=[
		@			  {name:"排序",index:"num",type:"text",newline:true,length:3,required:"required"},
		@			  {name:"上级部门",index:"pid", type:"opentreeDiy",source:"dept.diy",treeId:"id",check:"radio",newline:false,length:3},
		@			  {name:"部门简称",index:"simplename", type:"text",newline:true,length:3,required:"required"},
		@			  {name:"部门全称",index:"fullname", type:"text",newline:false,length:3,required:"required"},
		@			  {name:"备注",index:"tips", type:"text",newline:true,length:8}
		@		   ];
		@ include("/common/_curd/_edit.html",{"col":_col,"table":_table,"key":_key}){}
		
		<!-- 按钮 -->
		@ include("/common/_curd/_btn.html",{btn_save:"修改",btn_close:"关闭"}) {}	
	</form>
	<script type="text/javascript">
		$(function(){
			$("#btn_save").bind("click",function(){
				setTimeout(function(){parent.initZtree();}, 499);
			});
		});
	</script>
@}
